CXX = g++
CXXFLAGS = -std=c++17 -Wall -pthread -Icommon -Iserver

SERVER_SRC = \
    server/server_main.cpp \
    server/server_core.cpp \
    common/thread_pool.cpp

CLIENT_SRC = \
    client/client.cpp

all: server client

server: $(SERVER_SRC)
	$(CXX) $(CXXFLAGS) -o server_chat $(SERVER_SRC)

client: $(CLIENT_SRC)
	$(CXX) $(CXXFLAGS) -o client_chat $(CLIENT_SRC)

clean:
	rm -f server_chat client_chat

